.portfolio-label {
    display: block;
    width: 100%;
    max-width: 1250px;
    margin: 20px auto;
    font-size: 16px;
    color: #8f8f8f;
    font-weight: 600;
    margin-bottom: -50px;
    span {
        color: #87b672;
    }
}
.portfolio-main {
    width: 100%;
    .main-content {
        padding: 0 5%;
        background-color: #efefef;
        font-size: 0;
        text-align: center;
        margin: 80px 0;
        .content-model {
            width: 28%;
            display: inline-block;
            margin: 0 2%;
            position: relative;
            bottom: -40px;
            h3 {
                font-size: 16px;
                color: #5f5b5b;
                padding: 0 9% 20px 9%;
                margin: 0;
                text-align: left;
            }
            p {
                font-size: 14px;
                color: #8f8f8f;
                margin: -5px 0 20px 0;
                text-align: left;
                padding: 0 9%;
            }
            img {
                width: 334px;
                height: auto;
            }
            .model-imgs{
                position: absolute;
                width: 248px;
                left: 45px;
                bottom: 33px;
                height: 141px;
                overflow: hidden;
                img{
                    width: 100%;
                    height: 100%;
                }
                .imgs-back{
                    position: absolute;
                    width: 100%;
                    height: 100%;
                    z-index: 2;
                    background-color: rgba(239,239,239,0);
                    margin-left: -248px;
                    text-align: center;
                    transition: .5s;
                    background: #fff;
                    opacity: 0;
//                  display: none;
                    img{
                        width: 52px;
                        height: 52px;
                        position: relative;
                        top:50%;
                        margin-top: -26px;
                        cursor: pointer;
                        transition: .2s;
                    }
                }
            }
        }
    }
}

@media only screen and (min-width: 768px) and (max-width: 1024px){
    .portfolio-main{
        .main-content{
            .content-model{
                display: none;
                &+.content-model{
                    display: inline-block;
                    width: 40%;
                }
            }
        }
    }
}
@media only screen and (max-width: 768px){
    .portfolio-main{
        .main-content{
            .content-model{
                display: none;
                &:last-child{
                    display: inline-block;
                    width: 50%;
                }
            }
        }
    }
}
